#!/bin/bash

pages=3
for i in $(seq $pages)
do
    w3m http://www.kuaidaili.com/free/inha/$i -dump \
        | egrep '([0-9]+\.){3}.[0-9]+' \
        | awk '{print $1":"$2}'
done
